import java.util.Arrays;

public class Testcc {
    public static void main(String[] args) {

        int[] list = new int[] {66,23,99,4,50,36,88};

        for (int i = 0; i < (list.length - 1); i++) {

            for (int j = i+1; j < list.length; j++) {

                if (list[i] > list[j]) {
                    int temp = list[i];
                    list[i] = list[j];
                    list[j] = temp;
                }
            }
        }
                System.out.println(Arrays.toString(list));
    }
}
